﻿using System;
using System.Data;
using System.Web;
using AnyOffice.Components;
using AnyOffice.DAL;
using AnyOffice.Model;
using log4net;
using System.Reflection;

namespace AnyOffice.general.ipanel
{
    public partial class index : System.Web.UI.Page
    {
        public string onlineFile;

        private static ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
        public index()
        {
            this.onlineFile = "user_online.aspx";
       
        }   
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                ConfigManager manager = new ConfigManager();
                if (manager.RtxEnabled)
                {
                    this.onlineFile = "user_rtx_online.aspx";
                }
            }
            catch (Exception exception)
            {
                if (log.IsErrorEnabled)
                {
                    log.Error("", exception);
                }
            }


        }
    }
}
